Abstract class describing a parallel thing. More...
#include <distributed.hpp>
Public Member Functions | |
DistributedInterface (void) | |
Default constructor. | |
DistributedInterface (const DistributedInterface &old) | |
Copy constructor. | |
virtual | ~DistributedInterface (void) |
Destructor. | |
virtual const Communicator & | communicator (void) const =0 |
Get the communicator. | |
int | processor_rank (void) const |
Get this processor's rank. | |
int | processor_size (void) const |
Get the size of the parallel environment. |
Abstract class describing a parallel thing.
A parallel thing either contains or has access to a Communicator. A parallel thing needs access to this communicator, especially to determine the number processors and the local processor rank.
gridpack::parallel::DistributedInterface::DistributedInterface | ( | void | ) |
Default constructor.
gridpack::parallel::DistributedInterface::DistributedInterface | ( | const DistributedInterface & | old | ) |
Copy constructor.
virtual gridpack::parallel::DistributedInterface::~DistributedInterface | ( | void | ) | [virtual] |
Destructor.
virtual const Communicator& gridpack::parallel::DistributedInterface::communicator | ( | void | ) | const [pure virtual] |
Get the communicator.
Implemented in gridpack::parallel::Distributed, and gridpack::parallel::WrappedDistributed.
int gridpack::parallel::DistributedInterface::processor_rank | ( | void | ) | const |
Get this processor's rank.
References communicator(), and gridpack::parallel::Communicator::rank().
int gridpack::parallel::DistributedInterface::processor_size | ( | void | ) | const |
Get the size of the parallel environment.
References communicator(), and gridpack::parallel::Communicator::size().